package cn.edu.xmist.supermarketsys.service.impl;

import cn.edu.xmist.supermarketsys.entity.Product;
import cn.edu.xmist.supermarketsys.mapper.ProductMapper;
import cn.edu.xmist.supermarketsys.service.ProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements ProductService {
    @Override
    public List<Product> selectPage(Product product, Integer page, Integer size) {
        page = (page-1)*size;
        return this.baseMapper.selectPage(product,page,size);
    }
}
